@layout("/common/_form.html",{js:["/assets/product/product_edit.js"],plugins:["ue"]}){

<form class="layui-form" id="productForm" lay-filter="productForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="id" type="hidden"/>

                    <!--<div class="layui-inline layui-col-md12">-->
                    <!--<label class="layui-form-label">商品编码<span style="color: red;">*</span></label>-->
                    <!--<div class="layui-input-block">-->
                    <!--<input id="productNum" name="productNum" placeholder="请输入商品编码" type="text" class="layui-input" lay-verify="required" required/>-->
                    <!--</div>-->
                    <!--</div>-->
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">商品名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="productName" name="productName" placeholder="请输入商品名称" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">供应商<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input type="hidden" id="supplierName" name="supplierName"  class="layui-input">
                            <input type="hidden" id="supplierId" name="supplierId"  class="layui-input">
                            <select id="supplierNameSelect" name="supplierNameSelect"  lay-verify="required" lay-search>
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">商品分类<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input type="hidden" id="productCategoryName" name="productCategoryName"  class="layui-input">
                            <input type="hidden" id="productCategoryId" name="productCategoryId"  class="layui-input">
                            <select id="productCategorySelect" name="productCategorySelect"  lay-verify="required" lay-search>
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                    <!--<div class="layui-inline layui-col-md12">-->
                    <!--<label class="layui-form-label">货架id<span style="color: red;">*</span></label>-->
                    <!--<div class="layui-input-block">-->
                    <!--<input id="shelfId" name="shelfId" placeholder="请输入货架id" type="text" class="layui-input" lay-verify="required" required/>-->
                    <!--</div>-->
                    <!--</div>-->
                    <!--<div class="layui-inline layui-col-md12">-->
                    <!--<label class="layui-form-label">货架名称<span style="color: red;">*</span></label>-->
                    <!--<div class="layui-input-block">-->
                    <!--<input id="shelfName" name="shelfName" placeholder="请输入货架名称" type="text" class="layui-input" lay-verify="required" required/>-->
                    <!--</div>-->
                    <!--</div>-->
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">产地</span></label>
                        <div class="layui-input-block">
                            <input id="producePlace" name="producePlace" placeholder="请输入产地" type="text" class="layui-input"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">品牌</span></label>
                        <div class="layui-input-block">
                            <input id="brand" name="brand" placeholder="请输入品牌" type="text" class="layui-input"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">车型</span></label>
                        <div class="layui-input-block">
                            <input id="carModel" name="carModel" placeholder="请输入车型" type="text" class="layui-input"/>
                        </div>
                    </div>
                    <!--<div class="layui-inline layui-col-md12">-->
                    <!--<label class="layui-form-label">仓库id<span style="color: red;">*</span></label>-->
                    <!--<div class="layui-input-block">-->
                    <!--<input id="warehouseId" name="warehouseId" placeholder="请输入仓库id" type="text" class="layui-input" lay-verify="required" required/>-->
                    <!--</div>-->
                    <!--</div>-->
                    <!--<div class="layui-inline layui-col-md12">-->
                    <!--<label class="layui-form-label">仓库名称<span style="color: red;">*</span></label>-->
                    <!--<div class="layui-input-block">-->
                    <!--<input id="warehouseName" name="warehouseName" placeholder="请输入仓库名称" type="text" class="layui-input" lay-verify="required" required/>-->
                    <!--</div>-->
                    <!--</div>-->
                    <!--<div class="layui-inline layui-col-md12">-->
                    <!--<label class="layui-form-label">供应商id<span style="color: red;">*</span></label>-->
                    <!--<div class="layui-input-block">-->
                    <!--<input id="supplierId" name="supplierId" placeholder="请输入供应商id" type="text" class="layui-input" lay-verify="required" required/>-->
                    <!--</div>-->
                    <!--</div>-->

                    <!--<div class="layui-inline layui-col-md12">-->
                    <!--<label class="layui-form-label">分店id<span style="color: red;">*</span></label>-->
                    <!--<div class="layui-input-block">-->
                    <!--<input id="shopId" name="shopId" placeholder="请输入分店id" type="text" class="layui-input" lay-verify="required" required/>-->
                    <!--</div>-->
                    <!--</div>-->
                    <!--<div class="layui-inline layui-col-md12">-->
                    <!--<label class="layui-form-label">库存数量<span style="color: red;">*</span></label>-->
                    <!--<div class="layui-input-block">-->
                    <!--<input id="stockCount" name="stockCount" placeholder="请输入库存数量" type="text" class="layui-input" lay-verify="required" required/>-->
                    <!--</div>-->
                    <!--</div>-->
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">单价<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="unitPrice" name="unitPrice" placeholder="请输入单价" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">备注</span></label>
                        <div class="layui-input-block">
                            <input id="remark" name="remark" placeholder="请输入备注" type="text" class="layui-input"/>
                        </div>
                    </div>
                    <!--<div class="layui-inline layui-col-md12">-->
                    <!--<label class="layui-form-label">默认为0,1为删除<span style="color: red;">*</span></label>-->
                    <!--<div class="layui-input-block">-->
                    <!--<input id="isDelete" name="isDelete" placeholder="请输入默认为0,1为删除" type="text" class="layui-input" lay-verify="required" required/>-->
                    <!--</div>-->
                    <!--</div>-->
                    <!--<div class="layui-inline layui-col-md12">-->
                    <!--<label class="layui-form-label">已售数量<span style="color: red;">*</span></label>-->
                    <!--<div class="layui-input-block">-->
                    <!--<input id="saledCount" name="saledCount" placeholder="请输入已售数量" type="text" class="layui-input" lay-verify="required" required/>-->
                    <!--</div>-->
                    <!--</div>-->
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">商品图片</label>
                        <div class="layui-input-block">
                            <script id="imgProduct" name="imgProduct" type="text/plain"></script>
                        </div>

                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">商品详情</label>
                        <div class="layui-input-block">
                            <script id="imgDetails" name="imgDetails" type="text/plain"></script>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button id="cancel" type="button" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>

</form>

@}